package helpers;

public class Fun {
	public static Integer eval(int funcode, Integer x, int y) {
		if(x == null)
			return new Integer(y);
		switch(funcode) {
		case 1: return x + y;
		case 2: return x - y;
		case 3: return x * y;
		case 4: return x / y;
		default: return 0;
		}
	}
}
